import request from '@/plugins/request';
//登录
export function AccountLogin (data) {
    return request({
        url: '/v1/site/login',
        method: 'post',
        data
    });
}
//登出
export function AccountLoginOut (data) {
    return request({
        url: '/v1/site/logout',
        method: 'post',
        data
    });
}

// 菜单
export function GetMenus(data) {
    return request({
      url: "/v1/site/permissions",
      method: "get",
      params: data,
    });
  }
export function AccountRegister (data) {
    return request({
        url: '/api/register',
        method: 'post',
        data
    });
}
export function receiveList (data) {
    return request({
        url:'/api/receive',
        method:'get',
        data
    })
}

// 修改自己密码
export function rbacmemberchangepassword (data) {
    return request({
        url: '/v1/member/update-password',
        method: 'post',
        data
    });
}